﻿using UnityEngine;
using System.Collections;
using ALPackage;
using System;
using System.Collections.Generic;
using JetBrains.Annotations;

namespace HYOK
{
    /// <summary>
    /// 游戏主场景对象
    /// </summary>
    public class GStageMain : _AALBasicGameStage
    {
        private static GStageMain _g_instance = new GStageMain();
        [NotNull]
        public static GStageMain instance
        {
            get
            {
                if(null == _g_instance)
                    _g_instance = new GStageMain();
                return _g_instance;
            }
        }

        protected GStageMain() : base()
        {
        }


        protected override void _onEnterStage()
        {
            ALStepCounter stepCounter = new ALStepCounter();
            stepCounter.chgTotalStepCount(3);
            stepCounter.regAllDoneDelegate(setStageInited);

            //进入主3d场景
            GTDSceneMain.instance.enterScene();
            GTDSceneMain.instance.regInitDelegate(stepCounter.addDoneStepCount);
            //进入主界面
            //GUISceneMain.instance.enterScene();
            //GUISceneMain.instance.regInitDelegate(stepCounter.addDoneStepCount);
            
        }

        protected override void _onQuitStage()
        {
        }
    }
}
